package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 小程序用户对象 mobile_user
 *
 * @author ruoyi
 * @date 2024-06-13
 */
@Data
@TableName("mobile_user")
public class MobileUser extends BaseEntity {

private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String trueName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** openId */
    private String openId;

    /**
     * 头像
     */
    private String headSculpture;

    /** 删除标识 */
    private String delFlag;

    /**
     * 优惠券状态 0：未领取 1：已领取
     */
    @TableField(exist = false)
    private String ConponStatus;

    /**
     * 收藏数
     */
    @TableField(exist = false)
    private String collectionCount;

    /**
     * 是否核销员 0：否 1:是
     */
    @TableField(exist = false)
    private String isVerifier;



@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("trueName", getTrueName())
            .append("phone", getPhone())
            .append("openId", getOpenId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
        .toString();
        }
}